﻿@model Guline.Web.JXAccount.Models.LostPassword
@{
    ViewBag.Title = "Quên mật khẩu";
    Layout = "~/Views/Shared/_jxLayout.cshtml";
}
	<div class="content_left" id="Load_Content">
        <h2 class="title_page">Quên mật khẩu</h2>
    <div class="line"></div>
    <div class="central">
 
     @using (Html.BeginForm("LostPassword", "Home", FormMethod.Post, new { id="frmlogin"}))
     {
        <div class="central">
          <input type="hidden" value="1" name="Register">
             <p> @Html.ValidationSummary()  </p>   
          <div class="form_reg">
            <div class="form_reg_left">Tên đăng nhập</div>
            <div class="form_reg_right">
              @Html.TextBoxFor(m=>m.Username)     <br />@Html.ValidationMessageFor(m => m.Username)
            </div>  <div style="clear:both"></div>
           
          </div>
          
          <div class="form_reg">
            <div class="form_reg_left" style="color:red">Mật khẩu cấp mới</div>
            <div class="form_reg_right">
               @Html.PasswordFor(m => m.passnew) <br />@Html.ValidationMessageFor(m => m.passnew)
            </div>  <div style="clear:both"></div>
             
          </div>
       
          <div class="form_reg">
            <div class="form_reg_left">Câu hỏi bí mật</div>
            <div class="form_reg_right">
              @Html.DropDownList("ask")
            </div>
            <div id="quest_error" class="report_reg"></div>
          </div>
          <div class="form_reg">
            <div class="form_reg_left">Câu trả lời</div>
            <div class="form_reg_right">
              @Html.TextBoxFor(m => m.answer)<br /> @Html.ValidationMessageFor(m => m.answer)
            </div>      <div style="clear:both"></div>
         
          </div>
         
        </div>
        <div><img src="@Url.Content("~/Content/jx/img/capcha_reg.jpg")"></div>
        <div class="central">
          <div class="capcha_reg">
            <div class="capcha"> <img src="@Url.Action("ShowCaptchaImage")" width="100" height="40" class="img_bor" id="simg"> </div>
            <div>Click-đôi chuột để đổi hình</div>
            <div class="rep_capcha">
            
              @Html.TextBoxFor(m => m.Captcha, new { maxlength="6" ,size="3",style="text-transform:uppercase"})<br />
              @Html.ValidationMessageFor(m => m.Captcha)
            </div>
            @Html.ValidationMessage("MaBVKhonDung")
          </div>
        </div>
        <div class="bor_bottom"></div>
        <div class="btn_action">
          <input type="image" name="submit" id="submit" src="@Url.Content("~/Content/jx/img/complete_btn.jpg")">
          <input type="reset" value="Nhập lại" name="reset">
        </div>
     }
    </div>
</div>
<div class="content_right" id="Login_Content">

</div>	
<script>
    $(document).ready(function () {
        $("#submit").click(function () {
            $("#frmlogin").submit();
        });
        $("#simg").dblclick(function () {
            $(this).attr("src", "@Url.Action("ShowCaptchaImage")")
            return false;
        });
    });
  </script>